package com.ty.paypal.core.request;

import com.paypal.http.Headers;
import com.paypal.http.HttpRequest;
import com.ty.paypal.core.Payouts;
import com.ty.paypal.core.request.body.PayoutsRequest;

/**
* @author ty
* @createDate 创建时间：2020年2月21日 下午4:42:32
**/
public class PayoutsCreateRequest extends HttpRequest<Payouts >{
 
	public PayoutsCreateRequest() {
		super("/v1/payments/payouts", "POST", Payouts.class);
		header(Headers.CONTENT_TYPE, "application/json");
	}
	
	public PayoutsCreateRequest authorization(String authorization) {
        header("Authorization", String.valueOf(authorization));
        return this;
    }
	
	public PayoutsCreateRequest requestBody(PayoutsRequest body) {
        super.requestBody(body);
        return this;
    }
}
